import request from '@/common/request';
// 微信登录
export function wxLogin(data) {
  return request({
    url: '/app/Member/WxLogin',
    method: 'POST',
    data,
  });
}

// 登录
export function memberLogin(data) {
  return request({
    url: '/app/Member/Login',
    method: 'POST',
    data,
  });
}

// 注册
export function memberRegister(data) {
  return request({
    url: '/app/Member/Register',
    method: 'POST',
    data,
  });
}

// 注销
export function loginOff(data) {
  return request({
    url: '/app/Member/LogOff',
    method: 'POST',
    data,
  });
}

// 忘记密码,重新设置
export function memberSetForgetPwd(data) {
  return request({
    url: '/app/Member/SetForgetPwd',
    method: 'POST',
    data,
  });
}

// 发送注册验证码
export function sendRegisterSmsCode(data) {
  return request({
    url: '/app/Sms/RegisterSmsCode',
    method: 'POST',
    data,
  });
}

// 发送注册验证码
export function sendPwdSmsCode(data) {
  return request({
    url: '/app/Sms/pwdSmsCode',
    method: 'POST',
    data,
  });
}
